import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home.vue'
import Me from '@/views/Me.vue'
import Profile from '@/components/Me/Profile.vue'
import Account from '@/components/Me/Account.vue'
import Score from '@/components/Me/Score.vue'
import Create from "@/views/Create";
import Find from '../views/Find'
import Questionnaire from '../views/Questionnaire'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home
    },
    {
      path: '/Find',
      name: 'Find',
      component: Find
    },
    {
      path: '/Me',
      name: 'Me',
      component: Me,
      children: [
        {
          path: 'Profile',
          name: 'Profile',
          component: Profile
        },
        {
          path: 'Account',
          name: 'Account',
          component: Account
        },
        {
          path: 'Score',
          name: 'Score',
          component: Score
        }
      ]

    },
    {
      path: '/Create',
      name: 'Create',
      component: Create
    },
    {
      path: '/questionnaire/:id',
      name: 'questionnaire',
      component: Questionnaire
    }
  ]
})
